<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class Feedback extends Model
{
    public $table = 'shop_feedback';
    public $timestamps = true;

    public $fillable = [
        'id', 'user_id', 'feedback_content', 'feedback_images', 'feedback_class_id', 'updated_at', 'updated_at', 'is_read'
    ];

    public function feedbackCate()
    {
        return $this->belongsTo('App\Models\FeedbackClass', 'feedback_class_id', 'id');
    }

    public function userinfo()
    {
        return $this->belongsTo('App\Models\User', 'user_id', 'id');
    }
}
